package com.ssy.lingxi.platform.template.service.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 选择状态 - enum
 * @author fhj
 * @date 2020/12/16
 * @version 2.0.0
 */
public enum SelectStatusEnum {

    UNSELECTED(0, "未选择"),
    SELECTED(1, "已选择"),
    ALL(2, "所有");

    private final Integer code;

    SelectStatusEnum(Integer code, String message) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getClass(), this.code);
    }
}
